package lesson3;

public class Circle {
    private static int aaa;
    private double r;
    private final double PI = 3.14;
//    void fun(){
//        PI = 3.1415926;
//    }
    public double calcCircleArea(){
        return PI*r*r;
    }

    public double calcCircleGirth(){
        return 2*PI*r;
    }

    public Circle(){
        this.r = 4;
    }

    public Circle(double r){
        this.r = r;
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    public double getPI() {
        return PI;
    }
}
